package com.itheima.service;

import com.itheima.pojo.Result;
import com.itheima.pojo.User;

import java.util.Map;

public interface UserService {
    Result login(String username, String password);

    Result register(String userName, String password);

    Result<User> getUserInfo();

    Result updateUserInfo(User user);

    void updateUserPic(String avatar);

    Result updatePwd(Map<String, String> map);
}
